<%--
  Created by IntelliJ IDEA.
  User: 佐佑
  Date: 2020/7/25
  Time: 17:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css">
    <style>
        td{
            text-align: center;
        }
    </style>
</head>
<body>
<table class="table table-bordered table-hover" style="width: 60%; margin:auto">
    <tr class="success">
        <td></td>
        <td>姓名</td>
        <td>密码</td>
    </tr>
    <tr>
        <td>原信息</td>
        <td>${student.username}</td>
        <td>${student.password}</td>
    </tr>
</table>

<form method="${pageContext.request.contextPath}/studentServlet" style="width: 60%; margin: auto">
    <input type="hidden" name="update_id" value="${student.id}"/>
    姓名:<input type="text" name="username" value="${student.username}" required>
    密码:<input type="text" name="password" value="${student.password}" required>
    <br>
    <input type="hidden" name="method" value="updateStudent"/>
    <button type="submit">提交</button>
</form>
</body>
</html>

